#include <iostream>
#include <vector>

using namespace std;
using ll = long long;

void solve() {
	int n;
	cin >> n;
	vector<int> a(n);
	for (int i = 0; i < n; i++) cin >> a[i];
	
	int x = n + 1;
	
	for (int i = 0; i < n; i++) {
		cout << x - a[i] << " "; 
	}
	cout << endl;
}

int main() {
	int t;
	cin >> t;
	while (t-- > 0) {
		solve();
	}
	return 0;
}
